package map;

import java.util.HashMap;
import java.util.Map;

public class MapDemo2 {
    public static void main(String[] args) {


        Map<String, Integer> map = new HashMap<>();
        map.put("zhangsan", 23);
        map.put("lisi", 34);
        System.out.println(map);
        Integer value=map.get("lisi");
        System.out.println(value);
        System.out.println(map.size()+","+map.isEmpty()+map.containsKey("lisi"));
        System.out.println(map.containsKey(56));
        value=map.remove("zhangsan");
        System.out.println(value);




    }

}
